import { createRouter, createWebHashHistory } from "vue-router";

import HelloWorld from "@/components/HelloWorld.vue";
import showView from "@/components/showView.vue";

// 默认路由，所有用户共享
const routes = [
  {
    path: "/",
    name: 'HelloWorld',
    component: HelloWorld,
  },
  {
    path: "/showView",
    name: 'showView',
    component: showView,
    meta: {
      title: "展示",
    },
  },
];

export const router = createRouter({
  history: createWebHashHistory(),
  routes,
});
